<?php
if (!isset($_SESSION['clearance'])) {
    header('Location: login.php');
    exit;
}
else {
    $clearance = $_SESSION['clearance'];
}
?>